﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Profile.ascx.cs" Inherits="Module_Profile" %>

    
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>

    
    <table class="thongtintaikhoan" id="tblProfile" cellpadding=5px>
        <tr>
            <td  colspan="2" id="tdheaderProfile">
                Thông tin tài khoản</td>
            <td  id="tdheaderProfile">
                &nbsp;</td>
                
            <td>Thông tin chyến bay</td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                </td>
        </tr>
        <tr>
            <td >
                Tên đăng nhập:</td>
            <td >
                <asp:Label ID="lblusername" runat="server"></asp:Label>
            </td>
            <td >
                &nbsp;</td>
            <td  id="td1" rowspan="14" valign=top>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="airfareID" HeaderText="Mã vé" />
                        <asp:BoundField DataField="flightID" HeaderText="Mã chuyến bay" />
                        <asp:BoundField DataField="className" HeaderText="Hạng ghế" />
                        <asp:BoundField DataField="airfareTypeName" HeaderText="Loại vé" />
                        <asp:BoundField DataField="cost" HeaderText="Giá" />
                        <asp:BoundField DataField="createDate" HeaderText="Ngày mua" />
                        <asp:TemplateField HeaderText="Thao tác">
                            <ItemTemplate>
                                <table class="style1">
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lbEdit" runat="server" 
                                                CommandArgument='<%# Eval("airfareID","{0}") %>'>Thay đổi</asp:LinkButton>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lbDelete" runat="server" 
                                                CommandArgument='<%# Eval("airfareID","{0}") %>'>Hủy</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr runat=server id="an1">
            <td class="style9"  >
                Mật khẩu mới:</td>
            <td >
                <asp:TextBox ID="txtpassnew" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td >
                &nbsp;</td>
        </tr>
        <tr runat=server id="an2">
            <td >
                Nhập lại mật khẩu mới:</td>
            <td >
                <asp:TextBox ID="txtpassnewre" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtpassnew" ControlToValidate="txtpassnewre" 
                    ErrorMessage="mật khẩu không giống" ForeColor="Red" SetFocusOnError="True"></asp:CompareValidator>
            </td>
            <td >
                &nbsp;</td>
        </tr>
    
            <tr>
                <td  colspan="2">
                    Thông tin cá nhân</td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Họ và Tên:</td>
                <td >
                    <asp:TextBox ID="txthoten" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Ngày Sinh:</td>
                <td >
                    <asp:TextBox ID="txtdate" runat="server" Width="200px"></asp:TextBox>
                    dd/mm/yyyy</td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Giới tính:</td>
                <td >
                    <asp:RadioButton ID="rbonam" runat="server" Checked="True" GroupName="gender" 
                        Text="Nam" />
                    <asp:RadioButton ID="rbonu" runat="server" GroupName="gender" Text="Nữ" />
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Địa chỉ Email:</td>
                <td>
                    <asp:TextBox ID="txtemail" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Credit Card:</td>
                <td >
                    <asp:TextBox ID="txtcreditcard" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Card Number:</td>
                <td >
                    <asp:TextBox ID="txtcardnum" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Địa chỉ liên hệ:</td>
                <td >
                    <asp:TextBox ID="txtdiachi" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td >
                    Số điện thoại:</td>
                <td >
                    <asp:TextBox ID="txtsdt" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td >
                    &nbsp;</td>
            </tr>
            
    <tr>
        <td colspan=3 id="tdbtnProfile">
            <asp:Button ID="btnAddNew" runat="server" Text="Cập nhật thông tin" 
            onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="Quay lại" 
            onclick="Button2_Click" />
        </td>
    </tr>
    
    
   
  </table>
